package com.pcbly.web.business.workflow;

import com.pcbly.web.bean.workflow.WorkflowBean;
import com.pcbly.web.bean.workflow.WorkflowTemplateBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.persistence.workflow.WorkflowDao;

public class WorkflowServiceImp extends BaseServiceImp<WorkflowBean> implements
		WorkflowService {

	public WorkflowServiceImp() {
		super();
	}

	private WorkflowDao workflowDao;

	public void setWorkflowDao(WorkflowDao workflowDao) {
		this.workflowDao = workflowDao;
	}

	@Override
	public void createWorkflowTemplateBean(WorkflowTemplateBean bean)
			throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public void deleteWorkflowBean(String id) throws Exception {
		// TODO Auto-generated method stub
		workflowDao.removeById(id);
	}

	@Override
	public WorkflowBean findWorkflowBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return workflowDao.get(id);
	}

	@Override
	public void updateWorkflowBean(WorkflowBean bean) throws Exception {
		// TODO Auto-generated method stub
		workflowDao.saveObject(bean);
	}

}
